//
// Created by Zhangwj on 2023/9/18.
//

#include "charHelper.h"
#include <cctype>

bool isAlphaOrUnderscore(char c) {
    return std::isalpha(c) || '_' == c;
}

bool isAlnumOrUnderscore(char c) {
    return std::isalnum(c) || '_' == c;
}

bool isNormalChar(char c) {
    return (c == 32) || (c == 33) || (c >= 40 && c <= 126);
}

bool isNonZeroDigit(char c) {
    return c >= '1' && c <= '9';
}
